<template>
	<view class="d-flex">
		<button class="m-1" type="warn" @click="toPage('/pages/test/test')">测试页面</button>
		<button class="m-1" type="warn" @click="toPage('/pages/news/news')">新闻页面</button>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'

	const toPage = (page) => {
		uni.navigateTo({
			url: page
		})
	}
</script>

<style></style>